<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
</script>
<style type="text/css">
	input,table{font-family: 헤움상상182}
</style>
<script type="text/javascript">

	function winclo(){
			
		var m = document.mfrm;
	
		if(m.recv_id.value==""){
			alert("받는 사람이 없습니다.");
			history.back();
		}
		else if(m.content.value==""){
			alert("내용이 없습니다.");
			history.back();
		} else {
			m.submit();
			window.close();
		}
		
	}
</script>
</head>
<body bgcolor="ededed">
	<center>
	<form method="post" action="send_ok.do" name="mfrm">
	<table>
		<tr>
			<td>
				받는 사람 : <input type=text size="15" name="recv_id">
			</td>
		</tr>
		<tr>
			<td>
				<textarea rows="15" cols="35" name="content"></textarea>
			</td>
		</tr>
		<tr>
			<td align="center">
				<input type="button" value="전송" onclick="winclo()">
			</td>
		</tr>	
	</table>
	</form>
	</center>
</body>
</html>